]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
lookingGlass: Include St in default imports instead of Gtk
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 9 Feb 2019 03:56:58 +0000 (04:56 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 9 Feb 2019 11:22:14 +0000 (12:22 +0100)
Until commit 467b7c1bcacebdc, the import used to leak into the
eval() environment, but not anymore. Add it back (and remove
Gtk, as it's not *that* useful).

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/398

js/ui/lookingGlass.js

index e839ad75e8cead02ae057f4df7742502266d778a..920a24347b0e26befa2e2f6a3e6b45e600ab46a7 100644 (file)
@@ -17,7 +17,7 @@ const JsParse = imports.misc.jsParse;
 const CHEVRON = '>>> ';
 
 /* Imports...feel free to add here as needed */
-var commandHeader = 'const { Clutter, Gio, GLib, GObject, Gtk, Meta, Shell } = imports.gi; ' +
+var commandHeader = 'const { Clutter, Gio, GLib, GObject, Meta, Shell, St } = imports.gi; ' +
                     'const Main = imports.ui.main; ' +
                     'const Mainloop = imports.mainloop; ' +
                     'const Tweener = imports.ui.tweener; ' +